package com.wangsd.web.face.mapper;

import com.wangsd.web.face.entity.Advertisement;
import com.wangsd.web.face.entity.AdvertisementStoreRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author generator
 * @since 2019-10-29
 */
public interface AdvertisementStoreRelationMapper extends BaseMapper<AdvertisementStoreRelation> {

    /*通过门店id查询出相应的门店*/
    List<AdvertisementStoreRelation> selectStoreCount(@Param("storeIds") List<Long> storeIds);

    /*通过门店id查询出相应的门店*/
    List<Advertisement> selectAdvertisementByStoreId(@Param("storeIds") List<Long> storeIds);

}
